﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ApkInstaller.Util;

namespace ApkInstaller
{
    public partial class FrmViewPermissions : Form
    {
        public FrmViewPermissions(ApkInfo apkInfo)
        {
            InitializeComponent();
            var permissions = apkInfo.Permissions.OrderBy(s => s).ToList();
            for (int i = 0; i < permissions.Count; i++)
            {
                this.listView1.Items.Add(new ListViewItem(new string[]
                {
                    (i+1).ToString(),
                    permissions[i].ToString()
                }));
            }
        }
    }
}
